package movee.domain.query;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import movee.domain.common.BaseBackupConfig;

import jakarta.validation.constraints.NotBlank;
import java.util.List;

/**
 *
 *
 * @author movee
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Schema(description = "创建或编辑备份配置")
@JsonIgnoreProperties(ignoreUnknown = true)
public class AppConfigSaveQuery extends BaseBackupConfig {

    @SchemaProperty(name = "业务域")
    @NotBlank(message = "domain字段不能为空或null")
    private String domain;

    @SchemaProperty(name = "ip列表")
    private List<String> mgmtIps;

    @SchemaProperty(name = "操作人")
    @NotBlank(message = "operator字段不能为空或null")
    private String operator;

}
